package Com.amit.Thread;


public class Lab13 {

	@Override
	protected void finalize()  
	{
		System.out.println("Object is garbage collected");
		
		
	}
	
	public static void main(String[] args) {
		
		Lab13 l1=new Lab13();
		
		l1=null;
		Lab13 l2=new Lab13();
		l2=null;
		
		Lab13 k=new Lab13();
		k=null;
		
		System.gc();

	}

}
